// pages/band/index.js
const App = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    phone:''
  },
  created(){
    this.getKFPhone()
  },
  /**
   * 组件的方法列表
   */
  methods: {
    sq(){
      wx.makePhoneCall({
        phoneNumber: this.data.phone,
        success: function () {
          console.log('成功拨打电话')
        }
      })
    },
    getKFPhone() {
      let _this = this;
      App._get('user/getCustomer', {}, function (result) {
        _this.setData({
          phone:result.data.phone
        });
      });
    },
  },
  

})
